package com.chuangke.common.db.page;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public class CkPageEntityQuery<T> {
	
	private int current = 1;//当前页码
	private int size = 10;//每页数量
	private T param ;//参数

	public <M> IPage<M> getPage() {
		return new Page<>(getCurrent(), getSize());
	}
	
	public int getCurrent() {
		return current;
	}

	public void setCurrent(int current) {
		this.current = current;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public T getParam() {
		return param;
	}

	public void setParam(T param) {
		this.param = param;
	}

}
